using UnityEngine;

public class DialogBasePanel
{   
    public GameObject Go { get; private set; }
    public Transform Tf { get; private set; }
	public UILabel Info_txt { get; private set; }
	public UILabel Tip_txt { get; private set; }
	public GameObject Close_obj { get; private set; }
	public GameObject Dialog1_obj { get; private set; }
	public UILabel Dialog1_txt { get; private set; }
	public GameObject Dialog2_obj { get; private set; }
	public UILabel Dialog2_txt { get; private set; }

    public DialogBasePanel(GameObject obj)
    {
        Go = obj; Tf = obj.transform;
		Info_txt = Tf.Find("Sprite/Info_txt").GetComponent<UILabel>();
		Tip_txt = Tf.Find("Sprite/Tip_txt").GetComponent<UILabel>();
		Close_obj = Tf.Find("Sprite/Close_obj").gameObject;
		Dialog1_obj = Tf.Find("Dialog1_obj").gameObject;
		Dialog1_txt = Tf.Find("Dialog1_obj/Dialog1_txt").GetComponent<UILabel>();
		Dialog2_obj = Tf.Find("Dialog2_obj").gameObject;
		Dialog2_txt = Tf.Find("Dialog2_obj/Dialog2_txt").GetComponent<UILabel>();
    }
}